React Aria
React Spectrumの一部 React Aria
WAI-ARIA Authoring Practiceに準拠したコンポーネントの実装
フォーカス管理のプリミティブの実装
フォーカストラップ
フォーカスリング(要素へのfocus-visibleの検知)
focus-withinの検知
など。実装がダルいので助かるぜ
Headless UIとは設計思想が異なっている気がするtosuke.icon
より細かいプリミティブを提供する
脱出ハッチが多く用意されているが、自分の足を容易に撃つことができる
useHoverに
useHover is similar to the :hover pseudo class in CSS, but :hover is problematic on touch devices due to mouse emulation in mobile browsers. Depending on the browser and device, :hover may never apply, or may apply continuously until the user touches another element. useHover only applies when the pointer is truly capable of hovering, and emulated mouse events are ignored.
って書いてあって実装も気合が入っている。おもろい
#フロントエンド